<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
	<meta name="Description" content="<?php echo lang('meta.description') ?>">
	<meta name="Keywords" content="<?php echo lang('meta.keywords') ?>">
	<meta name="document-classification" content="<?php echo lang('meta.classification') ?>" />
	<meta name="page-topic" content="<?php echo lang('meta.pagetopic') ?>" />
	<meta name="document-type" content="Public" />  
	<meta name="distribution" content="Global" />
	<meta name="rating" content="general" />
	<meta name="document-rating" content="Safe for Kids" />
	<meta name="robots" content="index,follow" />
	<title><?php echo $page_title ?></title>
	<link rel="icon" href="/img/favicon.png" type="image/png" />
	<link rel="shortcut icon" href="/favicon.ico" />
	<link rel="stylesheet" href="/css/main.css" type="text/css"/>
<?php
	# load additional css files if provided
	if(isset($css) && is_array($css)) 
		foreach($css as $cssfile)
			echo '	<link rel="stylesheet" href="' . $cssfile . '" type="text/css"/>' . "\n";
	
	if(isset($js) && is_array($js))
		foreach($js as $jsfile)
			echo '	<script type="text/javascript" src="' . $jsfile . '"></script>' . "\n";
?>
</head>

<body>
	<?php if(@$no_sidebar == false) : ?>
	<div id="task_edit_bgmask"></div>
	<div id="task_edit" style="display:none;">
		<input type="hidden" id="h_task_id" name="h_task_id" value=""/>
		<table class="task_edit_table" cellspacing="0" cellpadding="0" border="0" width="100%" height="100%">
			<tr>
				<td class="blueborder" width="100%" align="left" valign="top">
					<div id="edit_header"><span style="float:left"><?php echo lang('edit_task') ?></span><span style="float:right;margin-top:2px;margin-right:10px;"><a href="" id="close_dialog_link"><img src="/img/close.png"/></a></span></div>
					<div id="edit_inner">
						<table cellspacing="10" cellpadding="10" border="0" width="100%">
							<tr>
								<td width="20%" align="right" valign="top">
									<label class="edit_label" for="edit_textarea"><?php echo lang('task') ?></label>
								</td>
								<td align="left" valign="top" id="td_textarea">	
								</td>
							</tr>
							<tr>
								<td align="right" valign="middle">
									<label for="edit_tags" class="edit_label"><?php echo lang('tags') ?></label>
								</td>
								<td align="left" valign="middle">
									<input type="text" id="edit_tags" name="edit_tags" style="width:400px;float:left;"/>
									<img src="/img/information.png" style="float:left;margin-top:3px;margin-left:3px;" onmouseover="showTooltip(event, '<?php echo lang('tag_tooltip') ?>', 240);" onmouseout="hideTooltip();"/>
								</td>
							</tr>
							<tr>
								<td align="right" valign="middle">
									<label for="duedate" class="edit_label"><?php echo lang('duedate') ?></label>
								</td>
								<td align="left" valign="middle">
									<input id="duedate" type="text" id="duedate" name="duedate" style="width:130px;float:left;" readonly="readonly"/>
									<img src="/img/calendar.png" style="margin-top:3px;" onmouseover="showTooltip(event, '<?php echo lang('duedate_tooltip'); ?>', 200)" onmouseout="hideTooltip();"/>
								</td>
							</tr>
							<tr>
								<td align="right"><div id="ajaxloader"><img src="/img/ajax-loader.gif" title="Ajax Loader Image" alt="Ajax Loader Image"/></div></td>
								<td align="left">
									<input type="button" id="btn_savetask" name="btn_savetask" value="<?php echo lang('save') ?>" style="margin:10px 0px;"/>
									<input type="button" id="btn_cancel" name="btn_cancel" value="<?php echo lang('cancel') ?>" style="margin-top:10px;"/>
								</td>
							</tr>
						</table>
					</div>
				</td>
			</tr>
		</table>
	</div>
	<?php endif; ?>
	
	<div id="wrapper">
	<div id="header_wrapper">
		<div id="header">
			<div class="header_left">
				<span style="padding:10px 0px;display:inline-block;">turbotask.me</span> <span class="note"><sup>beta</sup></span>
			</div>
			<div class="header_right">
				<?php if($this->session->userdata('user_id') > 0) : ?>
				<span style="display:inline-block;padding-top:10px;padding-bottom:2px;">
					<strong alt="User e-mail address"><?php echo $this->session->userdata('email') ?></strong> | 
					<span><a href="<?php echo site_url('account/settings') ?>" alt="Settings link"><?php echo lang('settings') ?></a></span> |
					<span style="margin-right:2px;"><a href="<?php echo site_url('account/logout') ?>" alt="Logout link"><?php echo lang('logout') ?></a></span>
				</span>
				<?php else: ?>
				<span style="display:inline-block;text-align:right;vertical-align:middle;margin-top:10px;margin-right:2px;"><a href="<?php echo site_url('/') ?>" alt="Home page link"><?php echo lang('home') ?></a></span>
				<?php endif; ?>
				
			</div>
		</div>
	</div>
	
	<noscript><div class="nojavascript"><?php echo lang('no_javascript') ?></div></noscript>
